using System;
using digit.Core;
using System.Data;

namespace SMS.MediaManager
{
	public class VoiceInfo
	{
		#region CONSTRUCTORS
		public VoiceInfo()
		{
		
			this.m_voiceID = Util.NULL_LONG;
			this.m_voiceName1 = Util.NULL_STRING;
			this.m_voiceName2 = Util.NULL_STRING;
			this.m_voiceName3 = Util.NULL_STRING;
			this.m_voiceName4 = Util.NULL_STRING;
			this.m_categoryID = Util.NULL_INT;
			this.m_uRL1 = Util.NULL_STRING;
			this.m_uRL2 = Util.NULL_STRING;
			this.m_uRL3 = Util.NULL_STRING;
			this.m_uRL4 = Util.NULL_STRING;
			this.m_uRL5 = Util.NULL_STRING;
			this.m_uRL6 = Util.NULL_STRING;
			this.m_author = Util.NULL_STRING;
			this.m_singer = Util.NULL_STRING;
			this.m_voiceDemoURL = Util.NULL_STRING;
			this.m_location = Util.NULL_STRING;
			this.m_sMSCount = Util.NULL_LONG;
			this.m_createdBy = Util.NULL_STRING;
			this.m_createdDate = Util.NULL_DATETIME;
			this.m_status = Util.NULL_BYTE;
		}
		public VoiceInfo( long voiceID,  string voiceName1,  string voiceName2,  string voiceName3,  string voiceName4,  int categoryID,  string uRL1,  string uRL2,  string uRL3,  string uRL4,  string uRL5,  string uRL6,  string author,  string singer,  string voiceDemoURL,  string location,  long sMSCount,  string createdBy,  DateTime createdDate,  byte status)
		{
		
			this.m_voiceID = voiceID;
			this.m_voiceName1 = voiceName1;
			this.m_voiceName2 = voiceName2;
			this.m_voiceName3 = voiceName3;
			this.m_voiceName4 = voiceName4;
			this.m_categoryID = categoryID;
			this.m_uRL1 = uRL1;
			this.m_uRL2 = uRL2;
			this.m_uRL3 = uRL3;
			this.m_uRL4 = uRL4;
			this.m_uRL5 = uRL5;
			this.m_uRL6 = uRL6;
			this.m_author = author;
			this.m_singer = singer;
			this.m_voiceDemoURL = voiceDemoURL;
			this.m_location = location;
			this.m_sMSCount = sMSCount;
			this.m_createdBy = createdBy;
			this.m_createdDate = createdDate;
			this.m_status = status;
		}
		public VoiceInfo( DataRow dRow)
		{
		
			this.m_voiceID = (long) Util.ReplaceDBNullTo(dRow["voiceID"], Util.NULL_LONG);
			this.m_voiceName1 = Util.ReplaceDBNullTo(dRow["voiceName1"], Util.NULL_STRING).ToString();
			this.m_voiceName2 = Util.ReplaceDBNullTo(dRow["voiceName2"], Util.NULL_STRING).ToString();
			this.m_voiceName3 = Util.ReplaceDBNullTo(dRow["voiceName3"], Util.NULL_STRING).ToString();
			this.m_voiceName4 = Util.ReplaceDBNullTo(dRow["voiceName4"], Util.NULL_STRING).ToString();
			this.m_categoryID = (int) Util.ReplaceDBNullTo(dRow["categoryID"], Util.NULL_INT);
			this.m_uRL1 = Util.ReplaceDBNullTo(dRow["uRL1"], Util.NULL_STRING).ToString();
			this.m_uRL2 = Util.ReplaceDBNullTo(dRow["uRL2"], Util.NULL_STRING).ToString();
			this.m_uRL3 = Util.ReplaceDBNullTo(dRow["uRL3"], Util.NULL_STRING).ToString();
			this.m_uRL4 = Util.ReplaceDBNullTo(dRow["uRL4"], Util.NULL_STRING).ToString();
			this.m_uRL5 = Util.ReplaceDBNullTo(dRow["uRL5"], Util.NULL_STRING).ToString();
			this.m_uRL6 = Util.ReplaceDBNullTo(dRow["uRL6"], Util.NULL_STRING).ToString();
			this.m_author = Util.ReplaceDBNullTo(dRow["author"], Util.NULL_STRING).ToString();
			this.m_singer = Util.ReplaceDBNullTo(dRow["singer"], Util.NULL_STRING).ToString();
			this.m_voiceDemoURL = Util.ReplaceDBNullTo(dRow["voiceDemoURL"], Util.NULL_STRING).ToString();
			this.m_location = Util.ReplaceDBNullTo(dRow["location"], Util.NULL_STRING).ToString();
			this.m_sMSCount = (long) Util.ReplaceDBNullTo(dRow["sMSCount"], Util.NULL_LONG);
			this.m_createdBy = Util.ReplaceDBNullTo(dRow["createdBy"], Util.NULL_STRING).ToString();
			this.m_createdDate = (DateTime) Util.ReplaceDBNullTo(dRow["createdDate"], Util.NULL_DATETIME);
			this.m_status = (byte) Util.ReplaceDBNullTo(dRow["status"], Util.NULL_BYTE);
		}
		#endregion
		
		#region ATTRIBUTES
		private long m_voiceID;
		private string m_voiceName1;
		private string m_voiceName2;
		private string m_voiceName3;
		private string m_voiceName4;
		private int m_categoryID;
		private string m_uRL1;
		private string m_uRL2;
		private string m_uRL3;
		private string m_uRL4;
		private string m_uRL5;
		private string m_uRL6;
		private string m_author;
		private string m_singer;
		private string m_voiceDemoURL;
		private string m_location;
		private long m_sMSCount;
		private string m_createdBy;
		private DateTime m_createdDate;
		private byte m_status;
		#endregion
		
		#region PROPERTIES
		public long VoiceID
		{
			get
			{
				return this.m_voiceID;
			}
			set
			{
				this.m_voiceID = value;
			}
		}
		
		public string VoiceName1
		{
			get
			{
				return this.m_voiceName1;
			}
			set
			{
				this.m_voiceName1 = value;
			}
		}
		
		public string VoiceName2
		{
			get
			{
				return this.m_voiceName2;
			}
			set
			{
				this.m_voiceName2 = value;
			}
		}
		
		public string VoiceName3
		{
			get
			{
				return this.m_voiceName3;
			}
			set
			{
				this.m_voiceName3 = value;
			}
		}
		
		public string VoiceName4
		{
			get
			{
				return this.m_voiceName4;
			}
			set
			{
				this.m_voiceName4 = value;
			}
		}
		
		public int CategoryID
		{
			get
			{
				return this.m_categoryID;
			}
			set
			{
				this.m_categoryID = value;
			}
		}
		
		public string URL1
		{
			get
			{
				return this.m_uRL1;
			}
			set
			{
				this.m_uRL1 = value;
			}
		}
		
		public string URL2
		{
			get
			{
				return this.m_uRL2;
			}
			set
			{
				this.m_uRL2 = value;
			}
		}
		
		public string URL3
		{
			get
			{
				return this.m_uRL3;
			}
			set
			{
				this.m_uRL3 = value;
			}
		}
		
		public string URL4
		{
			get
			{
				return this.m_uRL4;
			}
			set
			{
				this.m_uRL4 = value;
			}
		}
		
		public string URL5
		{
			get
			{
				return this.m_uRL5;
			}
			set
			{
				this.m_uRL5 = value;
			}
		}
		
		public string URL6
		{
			get
			{
				return this.m_uRL6;
			}
			set
			{
				this.m_uRL6 = value;
			}
		}
		
		public string Author
		{
			get
			{
				return this.m_author;
			}
			set
			{
				this.m_author = value;
			}
		}
		
		public string Singer
		{
			get
			{
				return this.m_singer;
			}
			set
			{
				this.m_singer = value;
			}
		}
		
		public string VoiceDemoURL
		{
			get
			{
				return this.m_voiceDemoURL;
			}
			set
			{
				this.m_voiceDemoURL = value;
			}
		}
		
		public string Location
		{
			get
			{
				return this.m_location;
			}
			set
			{
				this.m_location = value;
			}
		}
		
		public long SMSCount
		{
			get
			{
				return this.m_sMSCount;
			}
			set
			{
				this.m_sMSCount = value;
			}
		}
		
		public string CreatedBy
		{
			get
			{
				return this.m_createdBy;
			}
			set
			{
				this.m_createdBy = value;
			}
		}
		
		public DateTime CreatedDate
		{
			get
			{
				return this.m_createdDate;
			}
			set
			{
				this.m_createdDate = value;
			}
		}
		
		public byte Status
		{
			get
			{
				return this.m_status;
			}
			set
			{
				this.m_status = value;
			}
		}
		
		#endregion
		
	}
}